<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<link rel="stylesheet" type="text/css" href="" />
</head>
<body>

<script type="text/javascript" charset="UTF-8" src="">
function fibo()
{
    let [pre,curr] = [0,1];
    for(;;)
    {
        yield curr;
        [pre,curr] = [curr,pre + curr];
    }
}
for(let i of fibo())
{
    if(i > 10000)
    {
        break;
    }
    console.log(i);
}
//实现10000以内的数列
</script>
</body>
</html>
